package zsh.service;

import com.github.pagehelper.PageInfo;
import zsh.domain.Book;

import java.util.List;

public interface IBookService {
    int addBook(Book book);
    int deleteBook(int id);
    int updateBook(Book book);
    Book getBookById(int id);
    List<Book> getAllBooks(Book book);
    PageInfo<Book> getAllBooksByPage(Book book, int pageNum, int pageSize);
}
